<?php
/**
 * View parcial para campo form admin
 * @param campo
 * @param cabecalho
 * @param valor
 * @param hint
 * @param required
 */
$campo = $this->campo;
$cabecalho = $this->cabecalho;
$valor = $this->valor;
$hint = $this->hint;
?>
<label for="<?php echo $campo; ?>"><?php echo $cabecalho; ?></label>
<input class="text-input small-input {validate: {required: <?php echo (isset($this->required) && $this->required == false) ? 'false' : 'true'; ?>}}" type="text" id="<?php echo $campo; ?>" name="<?php echo $campo; ?>" value="<?php echo $valor; ?>" />
<?php 
if(!empty($hint)){
?>
<br />
<small class="hint"><?php echo $hint; ?></small>
<?php 
}
?>
<div class="break"></div>
<?php 
echo (!empty($valor)) ? $this->partial('youtube_video.phtml', array('url' => $valor)) : '';
?>